package org.anachronos.jeep.agent.instrumentation;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public interface TransactionTracingConstants {
	static final String TRANSACTION_CLAZZ = "javax.transaction.Transaction";
	static final String TRANSACTION_MANAGER_CLAZZ = "javax.transaction.TransactionManager";
	static final String USER_TRANSACTION_CLAZZ = "javax.transaction.UserTransaction";
	
	static final Set<String> INTERFACES = 
		new HashSet<String>(Arrays.asList(TRANSACTION_CLAZZ, TRANSACTION_MANAGER_CLAZZ, USER_TRANSACTION_CLAZZ));
	
	static final String BEGIN_METHOD = "begin";
	static final String[] END_METHODS = new String[] { "commit", "rollback" };
}
